from pydantic import BaseModel
from typing import List, Optional


# 目录响应
class CatalogResponse(BaseModel):
    success: bool
    message: Optional[str] = None
    files: List[str] = None


# 文件元数据
class FileMetadata(BaseModel):
    file_name: str
    file_size: int  # B为单位


# 文件操作响应
class FileOperationResponse(BaseModel):
    success: bool
    message: Optional[str] = None
